<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Pauses a service</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.win32-get-last-control-message.html">win32_get_last_control_message</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.win32-query-service-status.html">win32_query_service_status</a></div>
 <div class="up"><a href="ref.win32service.html">win32service 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.win32-pause-service" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">win32_pause_service</h1>
  <p class="verinfo">(PECL win32service SVN)</p><p class="refpurpose"><span class="refname">win32_pause_service</span> &mdash; <span class="dc-title">Pauses a service</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.win32-pause-service-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>win32_pause_service</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$servicename</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$machine</code></span>
  ] )</div>


  <p class="para rdfs-comment">
   Pauses a named service.  Requires administrative privileges.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.win32-pause-service-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">servicename</code></em></dt>

     <dd>

      <p class="para">
       The short name of the service.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">machine</code></em></dt>

     <dd>

      <p class="para">
       Optional machine name.  If omitted, the local machine is used.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.win32-pause-service-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
    成功时返回 <strong><code>WIN32_NO_ERROR</code></strong>，参数错误时返回 <strong><code>FALSE</code></strong>，或失败时返回一个 <a href="win32service.constants.errors.html" class="link">Win32 错误码</a>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.win32-pause-service-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.win32-start-service.html" class="function" rel="rdfs-seeAlso">win32_start_service()</a> - Starts a service</span></li>
    <li class="member"><a href="win32service.constants.errors.html" class="link">Win32 Error Codes</a></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.win32-get-last-control-message.html">win32_get_last_control_message</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.win32-query-service-status.html">win32_query_service_status</a></div>
 <div class="up"><a href="ref.win32service.html">win32service 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
